package com.example.io;

import java.io.InputStream;

/**
 * @author kangshuai
 */
public class Resources {

    /**
     * 读取文件至字节输入流
     *
     * @param path
     * @return
     */
    public static InputStream getResourceAsSteam(String path) {
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
